package firstTry;

import java.awt.image.BufferedImage;

public class Explosion extends Sprite {

	int old_pic = 0;
	
	public Explosion(BufferedImage[] i, double x, double y, long delay,
			GamePanel p) {
		super(i, x, y, delay, p);
	}

	
	public void doLogic (long delta){
		old_pic = currentpic;
		super.doLogic(delta);
		if(currentpic == 0 && old_pic !=0){
			remove = true;
		}
		
		
	}
	
	
	public boolean collidedwith(Sprite s) {
		return false;
	}

}
